/*
 * AboutDialog.java
 *
 * Created on __DATE__, __TIME__
 */

package org.jshand.jxc.framework;

/**
 *
 * @author  __USER__
 */
public class AboutDialog extends javax.swing.JDialog {

	/** Creates new form AboutDialog */
	public AboutDialog(java.awt.Frame parent, boolean modal) {
		super(parent, modal);
		initComponents();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jScrollPane1 = new javax.swing.JScrollPane();
		jTextArea1 = new javax.swing.JTextArea();
		jButton1 = new javax.swing.JButton();

		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
		setTitle("\u5173\u4e8e\u6211\u4eec");
		setResizable(false);

		jTextArea1.setBackground(new java.awt.Color(153, 153, 255));
		jTextArea1.setColumns(20);
		jTextArea1.setEditable(false);
		jTextArea1.setRows(5);
		jTextArea1.setText(getAboutString());
		jScrollPane1.setViewportView(jTextArea1);

		jButton1.setText("\u5173\u95ed");
		jButton1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton1ActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap(21, Short.MAX_VALUE)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														javax.swing.GroupLayout.Alignment.TRAILING,
														layout.createSequentialGroup()
																.addComponent(
																		jScrollPane1,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		428,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addContainerGap())
												.addGroup(
														javax.swing.GroupLayout.Alignment.TRAILING,
														layout.createSequentialGroup()
																.addComponent(
																		jButton1)
																.addGap(98, 98,
																		98)))));
		layout.setVerticalGroup(layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				layout.createSequentialGroup()
						.addContainerGap()
						.addComponent(jScrollPane1,
								javax.swing.GroupLayout.PREFERRED_SIZE, 286,
								javax.swing.GroupLayout.PREFERRED_SIZE)
						.addGap(18, 18, 18).addComponent(jButton1)
						.addContainerGap(19, Short.MAX_VALUE)));

		pack();
	}// </editor-fold>
	//GEN-END:initComponents

	private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
		this.dispose();
	}


	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JButton jButton1;
	private javax.swing.JScrollPane jScrollPane1;
	private javax.swing.JTextArea jTextArea1;

	// End of variables declaration//GEN-END:variables

	public String getAboutString() {
		StringBuffer sb = new StringBuffer();
		sb.append(" 此处可以介绍下本软件版本相关信息，作者信息                                 \t\n");
		sb.append("                                                                \t\n");
		sb.append(" Version: 1.0.1                                               \t\n");
		sb.append(" Build id: 2017年10月8日21:15:24                                      \t\n");
		sb.append(" Author  : 张金山-neusoft                                      \t\n");
		sb.append("                           \t\n");
		sb.append(" (c) Copyright Genuitec, L.L.C. 2000-2012.  All rights reserved.\t\n");
		sb.append(" Visit http://314649444.iteye.com/	   \t\n");
		sb.append("      \t\n");
		sb.append(" This product includes software developed by the following      \t\n");
		sb.append(" Eclipse Foundation http://314649444.iteye.com/                     \t\n");
		sb.append(" Apache Software Foundation http://314649444.iteye.com/              \t\n");

		return sb.toString();
	}

}